package net.sk.china.city.talk.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.city.talk.model.system.CityRoleMenu;

import java.util.List;

/**
 * SystemRoleMenuService 接口
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/3 15:45
 * // +----------------------------------------------------------------------
 */
public interface SystemRoleMenuService extends IService<CityRoleMenu> {

    /**
     * 通过角色id删除
     * @param rid 角色id
     * @return {@code boolean}
     */
    boolean deleteByRid(Integer rid);

    /**
     * 通过角色id获取菜单列表
     * @param rid 角色id
     * @return {@code List<Integer>}
     */
    List<Integer> getMenuListByRid(Integer rid);
}
